import { request } from '../utils/index.js';

// 查询订单
export function queryOrder (params) {
  return request({
    url: '/queryOrder',
    method: 'GET',
    data: {
      ...params
    },
  })
}

// 配送
export function deliveryOrder (params) {
  return request({
    url: '/deliveryOrder',
    method: 'GET',
    data: {
      ...params
    },
  })
}

// 修改配送时间
export function updateDeliveryTimePre (params) {
  return request({
    url: '/updateDeliveryTimePre',
    method: 'GET',
    data: {
      ...params
    },
  })
}

// 获取订单统计
export function countOrderByState (params) {
  return request({
    url: '/countOrderByState',
    method: 'GET',
    data: {
      ...params
    },
  })
}

// 获取订单
export function getOrderWorkOnDeliverySituation (params) {
  return request({
    url: '/getOrderWorkOnDeliverySituation',
    method: 'GET',
    data: {
      ...params
    },
  })
}

// 修改订单工单
export function saveWorkOrderModify (params) {
  return request({
    url: '/workOrderModify/saveOrderModify',
    method: 'post',
    data: {
      ...params
    },
  })
}
